<script setup lang="ts">
import { ref } from 'vue';
import Son from './son.vue'

const title = ref('this is app title')

const updateTitle = (newTitle:string)=>{
  title.value = newTitle
}

</script>

<template>
<Son @update-title="updateTitle" />
{{ title }}
</template>

